* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.font-semibold {
    font-size: 17px;
    line-height: 1.1764805882;
    font-weight: 600;
    letter-spacing: -0.00037em;
    font-family: -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif
}

html, body {
    overflow-x: hidden;
}

:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: #d2d2d7;
    --max-width: 1200px;
    --nav-height: 64px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-github {
    display: flex;
    align-items: center;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Open Source Section */
.opensource {
    padding: 120px 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.opensource-content {
    max-width: 700px;
    margin: 0 auto;
}

.github-icon {
    margin-bottom: 48px;
    color: var(--text-primary);
}

.opensource h2 {
    font-size: 48px;
    line-height: 1.0834933333;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 24px;
}

.opensource p {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-text {
    font-size: 19px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-text:hover {
    opacity: 0.8;
}

/* Fridge Showcase */
.fridge-showcase {
    position: relative;
    height: 620px;
    overflow: hidden;
    border-radius: 20px;
    margin: 60px 24px;
}

.showcase-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.fridge-showcase-picture {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
}

.fridge-showcase-picture img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.fridge-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 80px;
    background: rgba(0, 0, 0, 0.2);
}

.fridge-text {
    max-width: 600px;
    color: white;
}

.fridge-showcase h2 {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 32px;
    color: white;
}

.fridge-showcase h2 .highlight {
    color: #ff6b6b;
}

.fridge-subtitle {
    font-size: 21px;
    line-height: 1.4;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.fridge-text .btn {
    margin-top: 20px;
}

/* How it Works */
.how-it-works {
    padding: 0px 0;
    background-color: var(--bg-primary);
}

.how-it-works h2 {
    font-size: 48px;
    line-height: 1.0834933333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 80px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.step p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.47059;
}

/* Screenshots */
.screenshots {
    padding: 120px 0;
}

.screenshots h2 {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 80px;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.screenshot {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Testimonial */
.testimonial {
    margin-top: 60px;
    padding: 120px 0;
    background-color: var(--bg-secondary);
}

.testimonial blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
}

.testimonial p {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 400;
    margin-bottom: 24px;
}

.testimonial cite {
    font-size: 19px;
    color: var(--text-secondary);
    font-style: normal;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    text-align: center;
}

.cta h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta p {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr repeat(3, 200px);
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    gap: 12px;
}

.footer-logo img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-logo h4 {
    font-size: 19px;
    font-weight: 600;
    margin: 0;
}

.footer-spacer {
    min-width: 0;
}

.footer-section h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 3px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* App View Global Styles */
body.app-view .nav-links,
body.app-view .nav-github,
body.app-view .footer {
    display: none !important;
}

body.app-view .nav {
    border-bottom: 1px solid #e5e7eb;
}

body.app-view .cta {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    
    
    .fridge-showcase {
        margin: 80px 16px;
        min-height: 600px;
    }
    
    .fridge-content {
        padding: 60px;
        min-height: 600px;
    }
    
    .fridge-showcase h2 {
        font-size: 64px;
    }
    
    .opensource {
        padding: 80px 0;
    }
    
    .opensource h2 {
        font-size: 40px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-spacer {
        display: none;
    }

    .footer-brand {
        /*//grid-column: 1;*/
        top: -4px;
        padding-top: 4px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 24px;
    }
    
    .nav-links a:not(.nav-github) {
        display: none;
    }

    .fridge-showcase {
        margin: 60px 16px;
        min-height: 500px;
        border-radius: 16px;
    }
    
    .fridge-content {
        padding: 40px;
        min-height: 500px;
    }
    
    .fridge-showcase h2 {
        font-size: 48px;
    }
    
    .fridge-subtitle {
        font-size: 18px;
    }
    
    .opensource {
        padding: 60px 0;
    }
    
    .opensource h2 {
        font-size: 36px;
    }
    
    .opensource p {
        font-size: 19px;
    }
    
    .github-icon {
        margin-bottom: 32px;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    
    .testimonial p {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
